//
//  abc.m
//  ZPSDK
//
//  Created by 刘琛 on 2021/2/2.
//

#import "abc.h"
#import <AFNetworking/AFNetworking.h>
@implementation abc

-(void)showAleat{
    
//    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"" message:@"是否确定注销" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"确定", nil];
//
//    [alert show];
    NSLog(@"测试测试测试测试测试测试测试测试测试测试测试测试");
    [self getAFNetworking];

}
- (void)getAFNetworking {
    AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
 
    NSString *url = @"http://www.baidu.com";
 
    [manager GET:url parameters:nil progress:^(NSProgress * _Nonnull downloadProgress) {
           
         }
         success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
 
             NSLog(@"请求成功：%@",responseObject);
 
         }
         failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull   error) {
 
             NSLog(@"请求失败：%@",error);
 
         }];
}

@end
